class CreateWorks < ActiveRecord::Migration
  def self.up
    create_table :works do |t|
      t.string   :name
      t.datetime :cdate
      t.integer :wid
      t.integer :ac_type_id
      t.integer :author_id
      t.string :author_name
      t.integer :status, :default => 1     #1-正常 2-除外
      t.integer :part_count 
    end
  end

  def self.down
    drop_table :works
  end
end
